<?php
class Zend_View_Helper_Errors extends Zend_View_Helper_FormErrors
{

    public $view;
    protected $_htmlElementEnd       = '</span>';
    protected $_htmlElementStart     = '<span class="error">';
    protected $_htmlElementSeparator = '';
    public function errors ($element)
    {
        $errors = $element->getMessages();
        if (empty($errors)) {
            return null;
        }
        return  $this->formErrors($errors);
    }
    
    public function setView (Zend_View_Interface $view)
    {
        $this->view = $view;
    }
}

